
const px2rem = require('postcss-pxtorem')
const postcss = px2rem({
  rootValue: 37.5, // 基准值  设计稿宽度/10
  propList: ['*'] // 需要转换的属性，这里选择全部都进行转换
})

module.exports = {
  publicPath: './',
  devServer: {
    port: 8090,
    proxy: 'http://118.26.131.82:8885/',
    overlay: {
      warnings: true,
      error: false
    }
  },
  css: {
    loaderOptions: {
      postcss: {
        plugins: [postcss]
      }
    }
  }

}
